package com.jack.lib.net

import com.jack.lib.BaseData
import com.jack.lib.bean.Dict
import com.jack.lib.bean.Token
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * author : chong.huang
 * create : 2021/12/30
 * desc   :
 */
interface ApiService{

    //登录
    @POST("member/login")
    suspend fun login(@Body map: Map<String, String>): BaseData<Token>

    suspend fun login3(@Body map: Map<String, String>): BaseData<Dict>
    suspend fun login4(@Body map: Map<String, String>): BaseData<List<Dict>>

    @POST("sysDictionary/getList")
    suspend fun dictList(@Body map: Map<String, Int> = mapOf("pid" to 48)): BaseData<List<Dict>>

    //登录
    @POST("member/login")
    fun login2(@Body map: Map<String, String>): Observable<BaseData<Token>>
}